import 'package:equatable/equatable.dart';

class AccessToken extends Equatable {
  const AccessToken({
    required this.expirationTime,
    required this.data,
  });

  final DateTime expirationTime;
  final String data;

  @override
  List<Object?> get props {
    return [
      expirationTime,
      data,
    ];
  }

  bool get hasExpired {
    return DateTime.now().toUtc().isAfter(expirationTime);
  }
}
